1 /* 2 3 Boost Software License - Version 1.0 - August 17th, 2003 4 5 Permission is hereby granted, free of charge, to any person or organization 6 obtaining a copy of the software and accompanying documentation covered by 7 this license (the "Software") to use, reproduce, display, distribute, 8 execute, and transmit the Software, and to prepare derivative works of the 9 Software, and to permit third-parties to whom the Software is furnished to 10 do so, all subject to the following: 11 12 The copyright notices in the Software and this entire statement, including 13 the above license grant, this restriction and the following disclaimer, 14 must be included in all copies of the Software, in whole or in part, and 15 all derivative works of the Software, unless such copies or derivative 16 works are solely in the form of machine-executable object code generated by 17 a source language processor. 18 19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT 22 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE 23 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, 24 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 25 DEALINGS IN THE SOFTWARE. 26 27 */ 28 29 module derelict.purple.theme; 30 31 import derelict.glib.gtypes; 32 import derelict.glib.glibconfig; 33 34 extern (C): 35 36 alias _PurpleTheme PurpleTheme; 37 alias _PurpleThemeClass PurpleThemeClass; 38 39 struct _PurpleTheme 40 { 41 GObject parent; 42 gpointer priv; 43 } 44 45 struct _PurpleThemeClass 46 { 47 GObjectClass parent_class; 48 } 49 50 51 version(Derelict_Link_Static) 52 { 53 extern( C ) nothrow 54 { 55 GType purple_theme_get_type(); 56 const(gchar)* purple_theme_get_name(PurpleTheme* theme); 57 void purple_theme_set_name(PurpleTheme* theme, const(gchar)* name); 58 const(gchar)* purple_theme_get_description(PurpleTheme* theme); 59 void purple_theme_set_description(PurpleTheme* theme, const(gchar)* description); 60 const(gchar)* purple_theme_get_author(PurpleTheme* theme); 61 void purple_theme_set_author(PurpleTheme* theme, const(gchar)* author); 62 const(gchar)* purple_theme_get_type_string(PurpleTheme* theme); 63 const(gchar)* purple_theme_get_dir(PurpleTheme* theme); 64 void purple_theme_set_dir(PurpleTheme* theme, const(gchar)* dir); 65 const(gchar)* purple_theme_get_image(PurpleTheme* theme); 66 gchar* purple_theme_get_image_full(PurpleTheme* theme); 67 void purple_theme_set_image(PurpleTheme* theme, const(gchar)* img); 68 } 69 } 70 else 71 { 72 extern( C ) nothrow 73 { 74 alias da_purple_theme_get_type = GType function(); 75 alias da_purple_theme_get_name = const(gchar)* function(PurpleTheme* theme); 76 alias da_purple_theme_set_name = void function(PurpleTheme* theme, const(gchar)* name); 77 alias da_purple_theme_get_description = const(gchar)* function(PurpleTheme* theme); 78 alias da_purple_theme_set_description = void function(PurpleTheme* theme, const(gchar)* description); 79 alias da_purple_theme_get_author = const(gchar)* function(PurpleTheme* theme); 80 alias da_purple_theme_set_author = void function(PurpleTheme* theme, const(gchar)* author); 81 alias da_purple_theme_get_type_string = const(gchar)* function(PurpleTheme* theme); 82 alias da_purple_theme_get_dir = const(gchar)* function(PurpleTheme* theme); 83 alias da_purple_theme_set_dir = void function(PurpleTheme* theme, const(gchar)* dir); 84 alias da_purple_theme_get_image = const(gchar)* function(PurpleTheme* theme); 85 alias da_purple_theme_get_image_full = gchar* function(PurpleTheme* theme); 86 alias da_purple_theme_set_image = void function(PurpleTheme* theme, const(gchar)* img); 87 } 88 89 __gshared 90 { 91 da_purple_theme_get_type purple_theme_get_type; 92 da_purple_theme_get_name purple_theme_get_name; 93 da_purple_theme_set_name purple_theme_set_name; 94 da_purple_theme_get_description purple_theme_get_description; 95 da_purple_theme_set_description purple_theme_set_description; 96 da_purple_theme_get_author purple_theme_get_author; 97 da_purple_theme_set_author purple_theme_set_author; 98 da_purple_theme_get_type_string purple_theme_get_type_string; 99 da_purple_theme_get_dir purple_theme_get_dir; 100 da_purple_theme_set_dir purple_theme_set_dir; 101 da_purple_theme_get_image purple_theme_get_image; 102 da_purple_theme_get_image_full purple_theme_get_image_full; 103 da_purple_theme_set_image purple_theme_set_image; 104 } 105 }